//
//  JGApplyWithdrawalsContentView.m
//  JGRider
//
//  Created by 单启志 on 2018/2/5.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGApplyWithdrawalsContentView.h"
@interface JGApplyWithdrawalsContentView()

@property (weak, nonatomic) IBOutlet UITextField *textField;//金额
@property (weak, nonatomic) IBOutlet UILabel *tipLab;//提示超额lab
@property (weak, nonatomic) IBOutlet UIButton *commitBtn;//提交button

@end

@implementation JGApplyWithdrawalsContentView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        self=[[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil]lastObject];
        self.frame=frame;
    }
    return self;
}

//提交
- (IBAction)onCommitBtnClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(contentViewEventWithMoney:)]) {
        [self.delegate contentViewEventWithMoney:[self.textField.text floatValue]];
    }
}

-(void)awakeFromNib{
    [super awakeFromNib];
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.commitBtn.layer.cornerRadius=AdaptedWidth(2);
    self.commitBtn.layer.masksToBounds=YES;

}

@end
